﻿using UnityEngine;

namespace LitFramework
{
    public class GameState_Init : IState
    {
        public StateMechine Master { get; set; }

        public void OnEnter(params object[] values)
        {
            //游戏初始化
            GameManager.Instance.InitState = "游戏初始化...";
            GameManager.Instance.InitProgress = 0;
#if UNITY_EDITOR
            Master.TurnToState<GameState_HotUpdate>();
#elif UNITY_WECHAT_GAME
            Master.TurnToState<GameState_ForceUpdate_WxMiniGame>();
#else
            Master.TurnToState<GameState_ForceUpdate>();
#endif
        }

        public void OnUpdate()
        {

        }

        public void OnExit()
        {

        }
    }
}